package com.itself.service.impl;

import com.itself.dao.ProductDao;
import com.itself.entity.Product;
import com.itself.service.impl.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xukang
 * @date 2021-01-19 18:17
 */
@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductDao productDao;
    @Override
    public Product findByPid(Integer pid) {
        return productDao.findById(pid).get();
    }
}